<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    
  </style>
</head>

<body>
  <img 
  width="446.5"
  height="195.5"
  src="" 
  alt="" 
  data-src="./in.png" 
  class="lazyload">

  <script>
    window.onload = function () {
      const img = document.querySelector('.lazyload')
      const real_src = img.getAttribute('data-src') // 真实图片地址
      const oImg = document.createElement('img') // 用一个假节点渲染真实图片
      oImg.src = real_src // 真实图片
      oImg.onload = function () { // 真实图片加载完成
        setTimeout(() => {
          img.src = real_src // 替换页面图片
        }, 3000);
      }
    }
  </script>
</body>

</html>